<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">
<div class="table-responsive">
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th class="text-center">序号</th>
            <th class="text-center">昵称</th>
            <th class="text-center">时间</th>
            <th class="text-center">获取类型</th>
            <th class="text-center">获取明细</th>
            <th class="text-center">获取/消耗 积分</th>
        </tr>
        </thead>
        <tbody>
        <tr th:if="${#lists.isEmpty(dataMap['list'])}">
            <td colspan="5">
                <div class="noDataTipsBox">
                    <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
                </div>
            </td>
        </tr>
        <tr th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="userIntegralRecord:${dataMap['list']}">
            <td class="text-center" th:text="${userIntegralRecord['id']}"></td>
            <td class="text-center">
                <span th:text="${userIntegralRecord['nickname']}"></span>
            </td>
            <td class="text-center">
            <span class="line">
                 <span th:text="${#strings.substring(userIntegralRecord['createTime'],0,16)}"></span>
            </span>
            </td>
            <td class="text-center">
            <span th:if="${userIntegralRecord}!=null">
                <span th:if="${userIntegralRecord['recordType']}==1" class="c-green">积分消耗</span>
                <span th:if="${userIntegralRecord['recordType']}==2" class="c-red">积分获取</span>
            </span>
            </td>
            <td class="text-navy text-center" th:text="${userIntegralRecord['description']}"></td>
            <td class="text-center">
                <span class="c-green" th:if="${userIntegralRecord['recordType']}==1" th:text="'消耗积分-'+${userIntegralRecord['score']}"></span>
                <span class="c-red" th:if="${userIntegralRecord['recordType']}==2" th:text="'奖励积分+'+${userIntegralRecord['score']}"></span>
            </td>
        </tr>
        </tbody>
    </table>
</div>
<!-- 分页，开始 -->
<div data-th-replace="layout/adminPage"></div>
<!-- 分页，结束 -->